DIR=jlox/src
DIST=build/jlox
PACKAGE=com/ccx/myinterpreter
SOURCE=$(wildcard $(DIR)/$(PACKAGE)/*.java)
CLASSES=$(patsubst $(DIR)%,$(DIST)%,$(SOURCE:%.java=%.class))

all: $(CLASSES)
	@:

$(DIST)/$(PACKAGE)/%.class: $(DIR)/$(PACKAGE)/%.java
	@ mkdir -p $(DIST)
	javac -cp $(DIR) -d $(DIST) $<
	
